package com.pojo;

/**
 * Created by wcd on 2017/2/24.
 */
public class Animal {
    private String name;
    public Animal(String name){
        this.name=name;
    }
    public void eat(){
        System.out.println("eat food");
    }
    public void run(){
        System.out.println("animal can run");
    }

    @Override
    public String toString() {
        return "Animal{" +
                "name='" + name + '\'' +
                '}';
    }
}
